import Vue from 'vue'
import Vuex from 'vuex'
import persistedstate from 'vuex-persistedstate'
import tabs from '@/store/modules/tabs'
import userinfo from '@/store/modules/userinfo'
import ran from "@/store/modules/ran"
import tags from './modules/tags'

Vue.use(Vuex)
const store = new Vuex.Store({
    modules: {
        tabs,
        userinfo,
        ran,
        tags

    },
    plugins: [
        persistedstate({
            key:'USER_STORE',
            paths:["loginUser"]
        })
    ],
})
export default store